package com.jy.appmarket.network.engine;

import java.util.Map;

import android.content.Context;

import com.jy.app.market.idata.data.Login;
import com.jy.appmarket.network.resultdata.ModifyUserInfoResult;

public class ModifyUserInfoNetEngine extends BaseNetEngine{

	private Login mLogin;
	
	public ModifyUserInfoNetEngine(Login login) {
		mResultData = new ModifyUserInfoResult();
		mHttpMethod = HTTP_POST;
		mLogin = login;
	}
	
	@Override
	protected String getCommand() {
		return "modify_userinfo";
	}

	@Override
	protected void postParams(Context context, Map<String, String> params) {
		if (mLogin != null) {
			params.put("userId ", mLogin.getUserId());
			params.put("phoneNum", mLogin.getPhoneNum());
			params.put("nickName", mLogin.getNickName());
			params.put("sex", mLogin.getSex());
			params.put("birthday", mLogin.getBirthday());
		}
	}
}
